otr_module(user-interface BIN)

target_link_libraries(${self}
    opentrack-migration
    opentrack-logic
    opentrack-spline
    opentrack-pose-widget
)

# for process detector
if(APPLE)
    target_link_libraries(${self} proc)
elseif(LINUX)
    otr_pkgconfig(${self} libprocps)
endif()

if(NOT APPLE AND NOT WIN32)
    target_compile_definitions(${self} PRIVATE -DOTR_X11_THREADS)
    otr_pkgconfig(${self} x11)
endif()
